
using AutoMapper;
using JYJ.AiYard.StationManagement.TbDeparts;
using JYJ.AiYard.StationManagement.TbDeparts.Dtos;

namespace JYJ.AiYard.StationManagement.TbDeparts.Mapper
{

	/// <summary>
    /// 配置TbDepart的AutoMapper
    /// </summary>
	internal static class TbDepartMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <TbDepart,TbDepartListDto>();
            configuration.CreateMap <TbDepartListDto,TbDepart>();

            configuration.CreateMap <TbDepartEditDto,TbDepart>();
            configuration.CreateMap <TbDepart,TbDepartEditDto>();

            configuration.CreateMap<GetDepartUsersDto, TbDepart>();
            configuration.CreateMap<TbDepart, GetDepartUsersDto>();

        }
	}
}
